package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    User findByUsername(String username);

    PageResult pageQuery(QueryPageBean queryPageBean) throws Exception;

    List<Integer> findRoleIdsByUserId(Integer id);

    void addRole(User user , Integer[] roleIds);

    User findById(Integer id);

    void add(User user, Integer[] roleIds) throws Exception;

    void deletebyid(Integer id);
}
